#!/bin/bash
#set -x
if [[ "$op_sys" != "${op_sys##CYGWIN}" ]] ; then
  is_cygwin=1
  antcmd=ant.bat
else
  is_cygwin=0
  antcmd=ant
fi
rm -f $II/whyc $II/whycp
echo "original parms=$*" 2>&1 | tee $II/whycp
if [[ "$1" = "-a" ]] ; then
	shift 1
	echo "\$mycdsvnp=$mycdsvnp
parms=$*"  | tee -a $II/whycp
fi
echo "parms=$*" | tee -a $II/whycp
cp $II/whycp $II/whyc
cd $1;shift 1;$antcmd $* 2>&1 | tee -a $II/whycp | $i/preproc.pl 2>&1 |  tee -a $II/whyc
# sed \
#	-e 's#\\src\(.*\)\(M[Ii][Dd]let\)#\\presrc\1\2#' 2>&1 
